package eva.savant.business.material.view

import eva.savant.core.view.Maestro
import eva.savant.businessobject.mt.Centro
import eva.savant.businessobject.gl.Division

import javax.faces.bean.ManagedBean
import javax.faces.bean.SessionScoped
import javax.annotation.PostConstruct

@SessionScoped
@ManagedBean(name = 'IMCentro')
public class IMCentro extends Maestro {

  def lsDivision

  @PostConstruct
  public void cleanEntity() {

    entity = new Centro(); init()

    entity.sociedad = sociedad

    entity.division= new Division()

    lsDivision= find(Division.class,'')
  }

}
